/**
 * @Author: hl
 * @Date: 2019/8/16
 * @Last Modified by: hl
 * @Last Modified time:
 */

import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 预收款客户查询
export const prepayCustomer = params => axios.get(`${SERVER.CYXDMS_FINANCE}/finance/advancesReceived/prepayCustomer`, { params });

// 查询所有员工
export const getAllUser = params => axios.get(`${SERVER.DMSCLOUD_BASEDATA}/basedata/users/getDealerUser`);
// 客户弹窗查询
export const queryCustomer = params => axios.get(`${SERVER.CYXDMS_FINANCE}/basedata/freeSettlement/queryOwnerAndCustomer`, { params });

// 预收款客户查询
export const search = params => axios.get(`${SERVER.CYXDMS_FINANCE}/advancesOrder/search`, { params });

// 结算方式查询
export const gatheringType = params => axios.get(`${SERVER.DMSCLOUD_BASEDATA}/gathering/gatheringType/dle?`, { params });

// 保存预收款转账
export const saveTransfer = params => axios.post(`${SERVER.CYXDMS_FINANCE}/advancesOrder/saveTransfer`, params);

// 获取车辆车主信息
export const getOwnerAndCarInfo = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/info/owner`, { params });

// 查询会员卡信息
export const getMembersInfo = params => axios.get(`${SERVER.MEMBERS_CLUB}/membersInterface/getMembersInfo`, { params });

// 转账列表查询
export const searchTransfer = params => axios.get(`${SERVER.CYXDMS_FINANCE}/advancesOrder/searchTransfer`, { params });

// 转账查询预收款客户
export const searchCustomer = params => axios.get(`${SERVER.CYXDMS_FINANCE}/advancesOrder/searchCustomer`, { params });

export const searchAllCustomer = params => axios.get(`${SERVER.CYXDMS_FINANCE}/advancesOrder/searchAllCustomer`, { params });
